﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

using MyHotel_BUSWS.MyHotel_PhongDAO_Webservice;
using MyHotel_BUSWS.MyHotel_PhieuThuePhongDAO_Webservice;
using MyHotel_BUSWS.MyHotel_LoaiPhongDAO_Webservice;
using MyHotel_BUSWS.MyHotel_KhachHangDAO_WebService;
using MyHotel_BUSWS.MyHotel_PhieuDichVuDAO_Webservice;


namespace MyHotel_BUSWS
{
    /// <summary>
    /// Summary description for MHPhieuThuePhongBUSWS
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class MHPhieuThuePhongBUSWS : System.Web.Services.WebService
    {

        [WebMethod]
        public Phong[] getListPhong()
        {
            return MHPhieuThuePhongBUS.getListPhong();
        }

        [WebMethod]
        public Phong[] getListPhongTrong()
        {
            return MHPhieuThuePhongBUS.getListPhongTrong();
        }

        [WebMethod]
        public LoaiPhong getLoaiPhongbyTenPhong(string tenphong)
        {
            return MHPhieuThuePhongBUS.getLoaiPhongbyTenPhong(tenphong);
        }

        [WebMethod]
        public PhieuDichVu[] getListDichVuByMaPhong(int maPhong)
        {
            return MHPhieuThuePhongBUS.getListDichVuByMaPhong(maPhong);
        }

        [WebMethod]
        public bool themPhieuThuePhong(PhieuThuePhong phieuThue, KhachHang khachHang)
        {
            return MHPhieuThuePhongBUS.themPhieuThuePhong(phieuThue, khachHang);

        }
    }
}
